package com.kingint.mbg.bas.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.ArrayList;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客房状态相关表
 * </p>
 *
 * @author wxh
 * @since 2020-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BasRoomState对象", description="客房状态相关表")
public class BasRoomState implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父类id")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty(value = "客房状态名称")
    @TableField("state_name")
    private String stateName;

    @ApiModelProperty(value = "客房状态类型（1，常见异常，2，缺少物品/顺坏）")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "对应酒店id")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "状态（0，正常，1，删除）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "判断是否是物品还是分类：0是物品，1是分类")
    @TableField("is_sort")
    private Integer isSort;
    @TableField(exist = false)
    private List<BasRoomState> children=new ArrayList<>();

    @TableField(exist = false)
    private List<BasRoomState> roomStates;



}
